package com.bite.messageQueue.common;

import com.bite.messageQueue.mqServer.core.BasicProperties;

import java.io.Serializable;

public class BasicPublishArguments extends BasicArguments implements Serializable {
    private String exchangeName;
    private String routingKey;
    private BasicProperties basicProperties;
    private byte[] body;

    public BasicPublishArguments() {
    }

    public BasicPublishArguments(String exchangeName, String routingKey, BasicProperties basicProperties, byte[] body) {
        this.exchangeName = exchangeName;
        this.routingKey = routingKey;
        this.basicProperties = basicProperties;
        this.body = body;
    }

    /**
     * 获取
     * @return exchangeName
     */
    public String getExchangeName() {
        return exchangeName;
    }

    /**
     * 设置
     * @param exchangeName
     */
    public void setExchangeName(String exchangeName) {
        this.exchangeName = exchangeName;
    }

    /**
     * 获取
     * @return routingKey
     */
    public String getRoutingKey() {
        return routingKey;
    }

    /**
     * 设置
     * @param routingKey
     */
    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    /**
     * 获取
     * @return basicProperties
     */
    public BasicProperties getBasicProperties() {
        return basicProperties;
    }

    /**
     * 设置
     * @param basicProperties
     */
    public void setBasicProperties(BasicProperties basicProperties) {
        this.basicProperties = basicProperties;
    }

    /**
     * 获取
     * @return body
     */
    public byte[] getBody() {
        return body;
    }

    /**
     * 设置
     * @param body
     */
    public void setBody(byte[] body) {
        this.body = body;
    }

    public String toString() {
        return "BasicPublishArguments{exchangeName = " + exchangeName + ", routingKey = " + routingKey + ", basicProperties = " + basicProperties + ", body = " + body + "}";
    }
}
